<%@ page import = "com.shopping.*" %>
<%

	String username = request.getParameter("username");
	boolean usernameexistFlag = User.findExistUser(username);
	
	response.setContentType("text/xml");//text/xml or text/html
	response.setHeader("Cache-Control","no-store");//http1.1
	response.setHeader("Pragma","no-cache");//http1.0
	response.setDateHeader("Expires",0);//prevent cache at the proxy server
	if(usernameexistFlag){
		response.getWriter().write("<msg>invalid</msg>");
	}else{
		response.getWriter().write("<msg>valid</msg>");
	}
	

%>